{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
  </div>
  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in">
        <div class="widget-body no-padding">
          <div class="bootstrap-table">
            <div class="fixed-table-toolbar">
              <div class="bs-bars pull-left">
                <div id="toolbar" class="toolbar"><a href="{:admin_url('admin/model/index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a>
 <a href="javascript:;" data-name="添加模型" data-url="{:admin_url('admin/model/add')}" class="btn btn-success btn-add btn-editone"><i class="fa fa-plus"></i> 添加</a> <a  url="{:admin_url('admin/model/status',array('status'=>1))}" target-form="ids" class="confirm btn btn-info btn-del btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 启用</a> <a  url="{:admin_url('admin/model/status',array('status'=>0))}" target-form="ids" class="confirm btn btn-warning btn-del btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 禁用</a> <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span> </div>
              </div>
            </div>
          </div>
          <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">
            <div class="fixed-table-body">
              <form class="ids">
                <table id="table ids" class="table table-striped table-bordered table-hover" width="100%">
                  <thead>
                    <tr style="height:45px;">
                      <th align="center" class="bs-checkbox"><input name="chkall" type="checkbox" id="chkall"></th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="id desc"}<a href="{:admin_url('admin/model/index',array('type'=>'id','order'=>'asc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/model/index',array('type'=>'id','order'=>'desc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">标识</th>
                      <th style="text-align:center;vertical-align: middle;">名称</th>
                      <th style="text-align:center;vertical-align: middle;">创建时间</th>
                      <th style="text-align:center;vertical-align: middle;">状态</th>
                      <th style="text-align:left;vertical-align: middle;">操作</th>
                    </tr>
                  </thead>
                  <tbody>
                  
                  {volist name="list" id="vo"}
                  <tr style="height:45px;">
                    <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$vo['id']}" id="checkbox"></td>
                    <td style="text-align:center;vertical-align: middle;">{$vo.id}</td>
                    <td style="text-align:center;vertical-align: middle;">{$vo.name}</td>
                    <td style="text-align:center;vertical-align: middle;">{$vo.title}</td>
                    <td style="text-align:center;vertical-align: middle;">{$vo['create_time']|date='Y-m-d:h:i:s',###}</td>
                    <td style="text-align:center;vertical-align: middle;"> {eq name="vo.status" value="1"} <a class="btn btn-info btn-xs btn-success ajax-get" url="{:admin_url('admin/model/status',array('id'=> $vo['id'],'status'=>0))}">启用</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-get" url="{:admin_url('admin/model/status',array('id'=> $vo['id'],'status'=>1))}">禁用</a>{/eq} </td>
                    <td style="text-align:left;vertical-align: middle;"><a href="javascript:;" data-name="编辑模型" data-url="{:admin_url('admin/model/edit',array('id'=> $vo['id']))}" class="btn btn-success btn-editone btn-xs"><i class="fa fa-pencil"></i> 编辑</a> <a url="{:admin_url('admin/model/del',array('id'=> $vo['id']))}" class="btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a> <a  style="display:none" class="btn btn-info btn-editone btn-xs" href="{:admin_url('admin/attribute/index',array('model'=> $vo['id']))}">字段</a> {if $vo['extend']} <a class="btn btn-success btn-editone btn-xs" href="{:admin_url('admin/'.$vo['name'].'/index')}">数据</a> {/if} </td>
                  </tr>
                  {/volist}
                  </tbody>
                </table>
              </form>
            </div>
          </div>
        </div>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
</div>
</div>
</div>
</div>
